/*
 * RestaurantComment class is an object relating to each restaurant comment in the server
 */

package com.object;

public class RestaurantComment {
	private int _id;			//Comment Id
	private int _user;			//User id of the user who gives this comment
	private int _restaurant;	//Restaurant id of the restaurant this comment belongs to
	private int _rating;		// 1 - 5 points
	private String _comment;	// comment string
	private String _createDate;	//Datetime string in format Y-m-d H:i:s
	
	public RestaurantComment(int id,int user,int restaurant,int rating, String comment, String createDate){
		_id = id;
		_user = user;
		_restaurant = restaurant;
		_rating = rating;
		_comment = comment;
		_createDate = createDate;
	}
	
	public int getId(){
		return _id;
	}
	
	public int getUser(){
		return _user;
	}
	
	public int getRestaurant(){
		return _restaurant;
	}
	
	public int getRating(){
		return _rating;
	}
	
	public String getComment(){
		return _comment;
	}
	
	public String getCreateDate(){
		return _createDate;
	}
}
